package cn.topcodes.tcsf.cms.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Album表单
 * @author Yvan
 * @date 2018-02-09 10:46:26
 */
@Data
public class AlbumForm implements Idable {
	
	private Long id;

	@NotNull(message = "名称不能为空")
	@Length(min = 0,max = 100,message = "名称长度为0~100个字符")
	private String name;
	
	@NotNull(message = "分类不能为空")
	private Long catalogId;
	
	private String description;

	private String contentImg;
}